<?php
//    include "function.php";
    include_once "./include/dbclass.php";
    $sql='SELECT * FROM `article` WHERE  class_id = 1 ORDER BY date DESC limit 10';
    $db=new DB();
    $results['0']=$db->getall($sql);
    $sql1='SELECT * FROM `article` WHERE class_id = 2 ORDER BY date DESC limit 10';
    $results['1']=$db->getall($sql1);
//    var_dump($results);
    include "./tpl/index.php";
